// pages/myProject/components/CardItem.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    info: {
      type: Object,
      value: {}
    },
    infoType: {
      type: Number,
      value: 0
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    goDetail() {
      console.log(this.properties.info.id)
      wx.navigateTo({
        url: "/pages/messageDetail/messageDetail?id=" + this.properties.info.id + '&infoType=' + this.properties.infoType,
      });
    }
  }
})